package tk.mynoteapp.dev.demo21.templatemethod;

import java.math.BigDecimal;

public class Item {
    // 商品ID
    private long id;
    // 商品数量
    private int quantity;
    // 商品价格
    private BigDecimal price;
    // 商品优惠
    private BigDecimal couponPrice;
    // 商品运费
    private BigDecimal deliveryPrice;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }

    public BigDecimal getDeliveryPrice() {
        return deliveryPrice;
    }

    public void setDeliveryPrice(BigDecimal deliveryPrice) {
        this.deliveryPrice = deliveryPrice;
    }

    @Override
    public String toString() {
        return "Item{" +
                "id=" + id +
                ", quantity=" + quantity +
                ", price=" + price +
                ", couponPrice=" + couponPrice +
                ", deliveryPrice=" + deliveryPrice +
                '}';
    }
}
